/*
 * Variable.h
 *
 *  Created on: Aug 5, 2009
 *      Author: ramesh
 */

#ifndef _COMPOSER_VARIABLE_H_
#define _COMPOSER_VARIABLE_H_

#include "Entity.h"

#include "../../Shared.h"


namespace SymphonyAST {

class Context;

class Variable : public Entity {
friend class Context;
friend class Class;

private:
	StackPointer address;
	Context* context;

public:
	Variable();

	int getSize();

	StackPointer getAddress();

	Context* getContext() {
		return context;
	}
	void setContext(Context* context) {
		this->context = context;
	}
};


}

#endif /* _COMPOSER_VARIABLE_H_ */
